import request from "../utils/request";

const BASE_URL = "sys-role";
export default {


    roleList(){
        return request({
            url: `${BASE_URL}/all`,
            method: 'get'
        })
    },
    add(role){
        return request({
            url:`${BASE_URL}/add`,
            method:'post',
            data:role
        })
    },
    update(role){
        return request({
            url:`${BASE_URL}/update`,
            method:'post',
            data:role
        })
    }

}

